<@layout.extends name="/inc/layout.ftl">
	<@layout.put block="title">
    	<title>修改用户信息</title>
	</@layout.put>

	<@layout.put block="contents">
		<div class="panel panel-default stacked">
			<div class="panel-heading">
				<ul class="nav nav-pills account-tab">
					<li><a href="profile">基本信息</a></li>
					<li><a href="email">修改邮箱</a></li>
					<li><a href="avatar">修改头像</a></li>
					<li class="active"><a href="password">修改密码</a></li>
				</ul>
			</div>
			<div class="panel-body">
				<div id="message">
				<#include "/default/inc/action_message.ftl"/>
				</div>
				<div class="tab-pane active" id="passwd">
					<form id="submitForm" action="password" method="post" class="form-horizontal">
						<div class="form-group">
							<label class="control-label col-lg-3" for="password">当前密码</label>
							<div class="col-lg-4">
								<input type="password" class="form-control" name="oldPassword" maxlength="18" placeholder="请输入当前密码" required>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-lg-3" for="password">新密码</label>
							<div class="col-lg-4">
								<input type="password" class="form-control" id="password" name="password" placeholder="请输入新密码" maxlength="18" required>
							</div>
						</div>
						<div class="form-group">
							<label class="control-label col-lg-3" for="password2">确认密码</label>
							<div class="col-lg-4">
								<input type="password" class="form-control" name="password2" data-required placeholder="请再输入一遍新密码" maxlength="18" required>
							</div>
						</div>
						<div class="form-group">
							<div class="text-center">
							<button type="submit" class="btn btn-primary">提交</button>
							</div>
						</div><!-- /form-actions -->
					</form>
				</div>
			</div><!-- /panel-content -->
		</div><!-- /panel -->

		<script type="text/javascript">
			seajs.use('validate', function (validate) {
				validate.updatePassword('#submitForm');
			});
		</script>
	</@layout.put>
</@layout.extends>